import Config from '../config'

export default {
	props: {
		cls: {
			type: Array | String,
			default () {
				return []
			}
		}
	},
	computed: {
		className() {
			let cls = this.cls
			if (typeof this.cls === 'string') {
				cls = [this.cls]
			}
			return cls.map(c => Config.classSimple[c] ? Config.classSimple[c] : c)
		}
	}
}